<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateSettingAutoMsgTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('setting_auto_msg', function (Blueprint $table) {
            $table->smallIncrements('id');
            $table->string('content', 100)->default('')->comment('消息内容');
            $table->tinyInteger('content_type')->default(1)->comment('分类：1-快捷回复；2-系统打招呼消息');
            $table->tinyInteger('flag')->default(1)->comment('记录状态');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('setting_auto_msg');
    }
}
